package com.micai.springboot.service;

import com.baomidou.mybatisplus.service.IService;
import com.github.pagehelper.Page;
import com.micai.springboot.dto.RoleDto;
import com.micai.springboot.entity.RoleEntity;

import java.util.List;

/**
 * 描述：
 * <p>
 * Author: 赵新国
 * Date: 2017/10/24 18:03
 */
public interface RoleService extends IService<RoleEntity> {

    Page<RoleDto> getRoleByPage(int pageNum, int pageSize, String searchParam, String startDate, String endDate);

    Integer save(RoleDto roleDto);

    List<RoleDto> getRoleByParam(String searchParam);

    RoleDto getRoleById(Long id);

    Integer update(RoleDto roleDto);

    List<RoleDto> list();
}
